package com.zhuanzhuan.hero.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhuanzhuan.hero.user.entity.HeroUserNotes;

import java.util.List;

/**
 * dal Interface:HeroUserNotes
 * @author hanjunjun
 * @date 2024-6-25
 */
public interface HeroUserNotesService extends IService<HeroUserNotes> {

    /**
     * 查询fromUid给toUid的备注
     *
     * @param fromUid
     * @param toUid
     * @return java.lang.String 没有备注记录则返回""
     * @author  hanjunjun
     * @date 2024/6/26
     **/
    String queryNotesByUid(Long fromUid, Long toUid);

    List<HeroUserNotes> listByUid(Long fromUid, Long toUid);

    List<HeroUserNotes> listByUid(Long fromUid, List<Long> toUids);

    HeroUserNotes selectOneByUid(Long fromUid, Long toUid);

    /**
     * fromUid给toUid设置备注
     *
     * @param fromUid
     * @param toUid
     * @param notes
     * @return void
     * @author  hanjunjun
     * @date 2024/6/26
     **/
    void setUpNotes(Long fromUid, Long toUid, String notes);
}